import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        username: '',
        islogin: '',
        companyname: 'xxx管理后台'
	},
	mutations: {
		userName (state, key) {
			state.username = key
		},
		getCompany (state, key) {
			state.companyname = key
		},
		islogin (state, key) {
			state.islogin = key
		}
	},
	getters: {
		
	},
	actions: {
		
	}
})
